var express = require('express');
var https  = require('https');
var fs = require('fs');

var privateKey = fs.readFileSync('privkey.pem').toString();
var certficate = fs.readFileSync('newcert.pem').toString();
var options = {
    key: privateKey,
    cert: certficate
}

var app = express();
app.get("*", function(req, res) {
    res.send("thanks for calling securely")
})

https.createServer(options, app).listen(8443, function() {
    console.log("listening on 8443");
})